home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / NTXKEY.HDR < prev    next >
Text File  |  1994-04-25  |  976b  |  41 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _NtxKey(cFileName, lNtx) --> cIndexExpression
  8.  
  9. PARAMETERS:
  10.  
  11. cFileName : Clipper NTX file from which to derive key expression
  12. lNtx      : TRUE = Clipper NTX (DEFAULT) FALSE = dBASE NDX
  13.  
  14. SHORT:
  15.  
  16. Extract the index key expression from an index file (without db/ntx open).
  17.  
  18. DESCRIPTION:
  19.  
  20. _NtxKey() returns the Index Key expression of the specified .NTX file.
  21.  
  22. If the file does not exist, a NUL (ie, empty()) string is returned.
  23.  
  24. NOTE:
  25.  
  26.  
  27.  
  28. EXAMPLE:
  29.  
  30. t = _NtxKey('KLIPPER.NTX') // indexed on FNAME+LNAME
  31.  
  32. Result: t = 'FNAME+LNAME'
  33.  
  34.  
  35. #define NDX .F.
  36. t = _NtxKey('KLIPPER.NDX',NDX) // indexed on NAME+STR(ACCOUNT)
  37.  
  38. Result: t = 'NAME+STR(ACCOUNT)'
  39.  
  40. ******************************************************************************/
  41.